package com.kgc.dao;

import com.kgc.entity.News;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NewsMapper {

    List<News> getAllNews();

    int addNews(News news);

    int updateNews(News news);

    int deleteNews(Integer id);

    News getNewsById(Integer id);

    News getNewsByTitle(String title);

    List<News> getFrontFiveNews();

}
